package com.ycxy.school.express.web.enums;
import lombok.Getter;

/**
 * 订单删除类型枚举
 */
@Getter
public enum OrderDeleteEnum{
    /**
     * 订单撤销
     */
    CANCEL("订单撤销", 1),
    /**
     * 手动删除
     */
    MANUAL("手动删除", 2),
    /**
     * 系统删除
     */
    SYSTEM("系统删除", 3);

    private String name;
    private int type;

    OrderDeleteEnum(String name, int type) {
        this.name = name;
        this.type = type;
    }

    public Integer getValue() {
        return this.type;
    }
}
